import axios from '@/libs/api.request'

export const getMarkdowns = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/markdown/',
    params: val,
    method: 'get'
  })
};

export const createMarkdown = (markdown) => {
  return axios.request({
    url: 'api/HttpAutoTestService/markdown/',
    data: markdown,
    method: 'post'
  })
};

export const updateMarkdown = (markdown) => {
  return axios.request({
    url: `api/HttpAutoTestService/markdown/${markdown.id}/`,
    data: markdown,
    method: 'put'
  })
};
